package cn.edu.qut.edusys.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

@Mapper
public interface RootMapper {

    List<Map<String,Object>> root_search(Map<String,String> param);
    List<Map<String,Object>> check(Map<String,String> param);

    @Update("update t_user_info" +
            " set userName=#{userName}," +
            " userPhone=#{userPhone}," +
            " userType=#{userType}" +
            " where userId=#{userId}")
    int update(Map<String,String> param);

    int batchDelete(String[] ids);

}
